//
//  LGRulerView.h
//  SportRing
//
//  Created by mykoma on 14-4-7.
//  Copyright (c) 2014年 HotOne. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum
{
    LG_DIRECTION_TYPE_HORIZONTAL = 0,
    LG_DIRECTION_TYPE_VERTICAL
}LG_DIRECTION_TYPE;

@protocol LGRulerViewDelegate <NSObject>

-(void)selectNumber:(NSNumber *)number;

@end

@interface LGRulerView : UIScrollView

@property (nonatomic, assign) double beginNum;

@property (nonatomic, assign) double endNum;

// 每一个尺刻代表的数量
@property (nonatomic, assign) double eachOffset;

@property (nonatomic, assign) LG_DIRECTION_TYPE direction;

// 标尺选中偏移量
@property (nonatomic, assign) NSInteger selectOffset;

@property (nonatomic, assign) id<LGRulerViewDelegate> rulerDelegate;

-(CGFloat)eachDistance;

@end
